Change Log Severity from Debug for pipeline or step creation errors#5871
Change Log Severity from Debug for pipeline or step creation errors#5871flimmy wants to merge 3 commits intowoodpecker-ci:mainfrom
Conversation
|
Thanks. Though, I'm quite sure we changed this to prevent spamming the logs on large/public instances with many repos. |
|
i figured, but didn't find a issue or pr for these, and the debug log is too huge too leave enabled. |
|
I would agree at least to some changes. Some of the logs e.g. |
|
I also agree that most of these should be UI errors |
|
I also agree that instead of spaming the logs we should have it propergated to the UI in a nice way |
|
right, the two entries with a "failure" do exactly that, they create a pipeline entry with an error tab i'll strike them in the main post and the change. The main problem for me are the ones that do not produce any output at all (unless you have debug logs enabled). Like this one: "ErrFiltered (ignoring hook: 'when' filters filtered out all steps)" These are the ones that produce the most work for me as an admin. Alternatively it might be cool to create "empty" piplines entries with an error tab, just like the yaml parsing failures do. If that is something you would prefer, i would create a new pr/issue (or change this one instead of closing to preserve this conversation), as for that i would need more time because i'm not yet that familiar with the codebase. |
9b3123d to
788b971
Compare
|
rebased to upstream and reverted the loglevel change for the two errors that already generate a message in the webui. Further research on the remaining 4 changes:
If returning the pipeline and an error for the messages in server/pipeline/create.go or generating and returning an err in server/pipeline/stepbuilder/step_builder.go is a "quick fix" for one of you, or something you would see yourself working on in the near future, please let me know, else i will try to find some time to have a deeper look into the codebase to undestand the implications of creating incomplete pipeline objects. Or maybe we can merge the current loglevel changes and i create a seperate issue to "add ui warnings for silently dropped pipelines". |
|
I would be against this as this would result in a large amount of unneeded logs for large instances, if needed this should be added maybe as an option that by default is off |
what exactly?: the increased log level, or the addition of a ui warning and thus a database entry If its the first: i would like to argue that log-level "info" is not suitable for large installations anyway (in my experience error or warn are being used), and since there is nothing between info and debug (which is not suitable for any production setup no matter the size), i personally feel like "info" is a good compromise to silently dropping it and thus generating work for people trying to figure out why their pipeline wont start. |
|
Just an idea, don't know if the best option but could be additional server option LOG_SKIPPED_WORKFLOWS that if set would log these into (info/warn) level otherwise continue to log these as debug. |
|
At least this part should be configurable. I dont want a failed pipeline or spammed log in case a pipeline was skipped by when filters as for me thats expected behaviour. |
0cf0098 to
8ac5cdb
Compare
8ac5cdb to
f8d87ff
Compare
5ddfeed to
a2e66d6
Compare
like this? I added the target loglevel as an env-var in the flags and added it to the pipeline config struct in |
Hey Everyone,
i would like to propose a change to the log level of several "debug" messages, as the debug log level is not suitable for a production setup and some IMHO important information gets lost.
As the perceived importance is inherently subjective any input is welcome.
Here are my 2 cents:
failed to parse yamla failure should be at least a warningpipeline config could not be parseda failure should be at least a warningEdit 1: strike the 2 proposed warning changes as these are already shown in the web-ui